<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body{perspective: 1000px;}
    section {
      position: relative;
      width: 100px;
      height: 100px;
      margin: 100px auto;
      animation: move 3s linear alternate infinite;
      background:url(./img/back.jpg) no-repeat center;
      transform-style: preserve-3d;
    }
    @keyframes move {
      to{transform: rotate3d(0,1,0,360deg);}
    }
    section div{
      position: absolute;
      width: inherit;
      height: inherit;
      background: url(./img/front.jpg) no-repeat center;
    }
    section div:nth-child(1){
      transform: translate3d(0,0,300px);
    }
    section div:nth-child(2){
      transform: rotate3d(0,1,0,60deg) translate3d(0,0,300px);
    }
    section div:nth-child(3){
      transform: rotate3d(0,1,0,120deg) translate3d(0,0,300px);
    }
    section div:nth-child(4){
      transform: rotate3d(0,1,0,180deg) translate3d(0,0,300px);
    }
    section div:nth-child(5){
      transform: rotate3d(0,1,0,240deg) translate3d(0,0,300px);
    }
    section div:nth-child(6){
      transform: rotate3d(0,1,0,300deg) translate3d(0,0,300px);
    }
    
  </style>
</head>
<body>
  <section>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
  </section>
</body>
</html>